<template>
  <div id="category">
    <h1>这里是分类页面</h1>
    <p>{{username}}</p>
  </div>
</template>

<script>
export default {
  name : "Category",
  computed:{
    username(){     
      return this.$route.params.userName
    }
  },
  created() {
    console.log(this.$route)
    console.log("分类组件的初始化");
  },
}
</script>

<style>

</style>